package finalproject;

public class Cell {

    public Unit tempUnit = new Unit();
    public boolean occupied = false;
    public boolean clicked = false;
    private int xCoord;
    private int yCoord;
    private int cellSize;

    Cell() {
        xCoord = 0;
        yCoord = 0;
        cellSize = 32;
        clicked = false;
        tempUnit = null;
        if (tempUnit != null) {
            occupied = false;
        } else {
            occupied = true;
        }
    }

    Cell(int a, int b, int c) {
        xCoord = a;
        yCoord = b;
        cellSize = c;
    }

    public int getxCoord() {
        return xCoord;
    }

    public void setxCoord(int xCoord) {
        this.xCoord = xCoord;
    }

    public int getyCoord() {
        return yCoord;
    }

    public void setyCoord(int yCoord) {
        this.yCoord = yCoord;
    }

    public int getCellSize() {
        return cellSize;
    }

    public void setCellSize(int cellSize) {
        this.cellSize = cellSize;
    }

    /**
     * @return the tempUnit
     */
    public Unit getTempUnit() {
        return tempUnit;
    }

    /**
     * @param tempUnit the tempUnit to set
     */
    public void setTempUnit(Unit tempUnit) {
        this.tempUnit = tempUnit;
    }
}